#ifndef SCENE_API_H
#define SCENE_API_H

#include "common.h"
#include "scenes/scene_manager.h"

// 场景API路由处理函数
http_response_t *scene_api_get_scenes(const char *method, const char *path, 
                                     json_t *query_params, json_t *body, 
                                     void *user_data);
http_response_t *scene_api_get_scene(const char *method, const char *path, 
                                    json_t *query_params, json_t *body, 
                                    void *user_data);
http_response_t *scene_api_create_scene(const char *method, const char *path, 
                                       json_t *query_params, json_t *body, 
                                       void *user_data);
http_response_t *scene_api_update_scene(const char *method, const char *path, 
                                       json_t *query_params, json_t *body, 
                                       void *user_data);
http_response_t *scene_api_delete_scene(const char *method, const char *path, 
                                       json_t *query_params, json_t *body, 
                                       void *user_data);
http_response_t *scene_api_trigger_scene(const char *method, const char *path, 
                                        json_t *query_params, json_t *body, 
                                        void *user_data);
http_response_t *scene_api_enable_scene(const char *method, const char *path, 
                                       json_t *query_params, json_t *body, 
                                       void *user_data);

// 场景API注册
int scene_api_register_routes(http_server_t *server);

#endif
